package com.kayt.cyberBar.cpublic.business.entity.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OrderBy;
import javax.persistence.Table;

/**
 * CPublicShiftCode entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "c_public_shift")
public class CPublicShift implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4060571564051040425L;
	// Fields

	private Long id;
	private String storeCode;
	private String shiftCode;
	private String shiftName;
	private String startHandTime;
	private String endHandTime;
	private String startWorkTime;
	private String endWorkTime;
	private String workingHours;
	private String createTime;
	private String updateTime;
	private String statusCode;
	private Integer seq;

	// Constructors

	/** default constructor */
	public CPublicShift() {
	}

	/** full constructor */
	public CPublicShift(String shiftCode, String createTime,
			String updateTime, String statusCode) {
		this.shiftCode = shiftCode;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.statusCode = statusCode;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name = "STORE_CODE", length = 64)
	public String getStoreCode() {
		return storeCode;
	}

	public void setStoreCode(String storeCode) {
		this.storeCode = storeCode;
	}

	@Column(name = "SHIFT_CODE", length = 64)
	public String getShiftCode() {
		return this.shiftCode;
	}

	public void setShiftCode(String shiftCode) {
		this.shiftCode = shiftCode;
	}

	@Column(name = "CREATE_TIME", length = 64)
	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	@Column(name = "UPDATE_TIME", length = 64)
	public String getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "STATUS_CODE", length = 64)
	public String getStatusCode() {
		return this.statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}

	@Column(name = "SHIFT_NAME", length = 64)
	public String getShiftName() {
		return shiftName;
	}

	public void setShiftName(String shiftName) {
		this.shiftName = shiftName;
	}

	@Column(name = "START_HAND_TIME", length = 64)
	public String getStartHandTime() {
		return startHandTime;
	}

	public void setStartHandTime(String startHandTime) {
		this.startHandTime = startHandTime;
	}

	@Column(name = "END_HAND_TIME", length = 64)
	public String getEndHandTime() {
		return endHandTime;
	}

	public void setEndHandTime(String endHandTime) {
		this.endHandTime = endHandTime;
	}

	@Column(name = "START_WORK_TIME", length = 64)
	@OrderBy("desc")
	public String getStartWorkTime() {
		return startWorkTime;
	}

	public void setStartWorkTime(String startWorkTime) {
		this.startWorkTime = startWorkTime;
	}

	@Column(name = "END_WORK_TIME", length = 64)
	public String getEndWorkTime() {
		return endWorkTime;
	}

	public void setEndWorkTime(String endWorkTime) {
		this.endWorkTime = endWorkTime;
	}
	@Column(name = "WORKING_HOURS", length = 64)
	public String getWorkingHours() {
		return workingHours;
	}

	public void setWorkingHours(String workingHours) {
		this.workingHours = workingHours;
	}

	@Column(name = "SEQ")
	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

}